package me.fung.wubi.app.view.build_table

import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.ButtonDefaults
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp

@Composable
fun fileItemContent(
    file: String,
    modifier: Modifier = Modifier,
) {
    Surface(modifier = modifier) {
        Text(
            text = file,
            modifier = Modifier.border(1.dp, Color.LightGray, shape = RoundedCornerShape(3.dp)).height(ButtonDefaults.MinHeight)
                .wrapContentHeight(Alignment.CenterVertically).padding(start = 2.dp, end = 2.dp),
            maxLines = 1,
        )
    }
}
